package com.bestvike.stone.spring.exception;

/**
 * Created by 许崇雷 on 2018-08-22.
 */
public enum ErrorCode {
    SUCCESS("00000", "处理成功"),
    ERROR_PARAM("98", "参数错误"),
    ERROR_SERVER("99", "网络通讯异常");

    private final String code;
    private final String msg;

    ErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
